Common operators and operation symbols in php are described in detail .? Php Tutorial * operator number (PHP) operator symbol ** by operator number function is divided into: * 1. arithmetic operator +-* % + -- * 2. string operator. concatenation
PHP operators 1. Arithmetic Operators
The PHP arithmetic operators have + (plus),-(minus), * (multiply),/(except),% (remainder).
PHP operator 2. Assignment operators
The PHP assignment operator has + = (assigns the left-hand value to the left),-=
Basic Introduction to operators in php. In php, our commonly used operators include arithmetic operators, value assignment operators, comparison operators, and logical operators. I will introduce the usage of these operators to you. Division of
Classification of operators:
The PHP operator can be divided into unary operators, two-ary operators, and ternary operators based on the number of operands. Unary operators such as ! (take the inverse operator) or ++ (plus an operator), most of the
An operator can generate another value (thus the entire structure becomes an expression) by giving one or more values. 1 Definition
An operator can generate another value (thus the entire structure becomes an expression) by giving one or more values.
Copy CodeThe code is as follows:
/* OP symbol (PHP) Action symbol
*
* According to the function of the operation symbol is divided into:
* One, arithmetic operator +-*/% + +--
* Two, string operators. Join operators
* Third, assignment operator = +
The code is as follows:
/* OP symbol (PHP) Action symbol
*
* According to the function of the operation symbol is divided into:
* One, arithmetic operator +-*/% + +--
* Two, string operators. Join operators
* Third, assignment operator = + = = *=/=%=
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.